package com.imddysc.dwz.service;

import com.imddysc.dwz.entity.Links;
import com.imddysc.dwz.repository.LinksRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;

public interface LinksService {

    public Links addLinks(String url);

    public Links updateLinks(String oldUrl, String newUrl);

    public void deleteLinks(String url);

    public Links getById(Long id);

    public Links findLinksByUrl(String url);

    public void deleteLinksById(Long id);
    
    public Page<Links> findAllByPageable(Integer currentPage, Integer pageSize);

	public Links getLinks(Long id);
	
	public Links saveAndFlushLinks(Links links);
}
